package com.cqcvc.service;

import com.cqcvc.mapper.DownLogMapper;
import com.cqcvc.pojo.DownLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DownLogService {
    @Autowired
    private DownLogMapper downLogMapper;

    /**
     * 记录下载日志
     * @param title
     * @param author
     * @return
     */
    public int insert(String title,String author){
       return downLogMapper.insert(title, author);
    }

    /**
     * 下载统计
     * @return
     */
    public List<DownLog> stas(){
        return downLogMapper.stas();
    }
}
